package com.project.psc.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.List;

/**
 * 订单实体
 */
@Data
@TableName("t_order")
public class OrderBean {
    /**
     * 订单id
     */
    @TableId(value = "pk_id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单编号
     */
    @TableField("o_orderId")
    private String orderId;

    /**
     * 合同号
     */
    @TableField("o_pact")
    private String pact;

    /**
     * 供应商名称
     */
    @TableField("o_supplierName")
    private String supplierName;
    /**
     * 供应商id
     */
    @TableField("fk_supplierId")
    private Long supplierId;

    /**
     * 订单总价
     */
    @TableField("o_sumPrice")
    private Double sumPrice;


    /**
     * 时间
     */
    @TableField("o_time")
    private LocalDateTime time = LocalDateTime.now();

    @TableField(exist = false)
    private List<SupplyGoodsBean> supplyGoodsList;

}
